<?php

namespace app\shop\model;

class Workset extends \ShopModel
{
    protected $table = 'sh_crm_set';
    public function getset($title){
        return $this->value($title);
    }
    public function setpic($set){
        if($set){
            $update["work_report_picture"]=1;
        }else
            $update["work_report_picture"]=0;
        
        $this->where("1=1")->update($update);
    }
    public function setcrm($set){
        if($set){
            $update["crm_other_cus"]=1;
        }else
            $update["crm_other_cus"]=0;
        
        $this->where("1=1")->update($update);
    }
}
